import { param } from 'jquery';
import React from 'react'

//订单列表
export async function apiGetOrderList(params) {
    return await React.$post('/management/order/getStoreOrderPage', params);
}
//退款
export async function apiManageRefundRequest(params) {
    return await React.$postJson('/trade/api/b/orderRefund/manageRefundRequest', params);
}
//完结订单
export async function apiFinishOrder(params) {
    return await React.$postJson('/trade/api/c/orderInfo/finishOrder', params);
}
//订单详情
export async function apiGetOrderDetails(params) {
    return await React.$post('/management/order/getStoreOrderDetail', params);
}
//退单列表
export async function apiGetReturnOrderDetails(params) {
    return await React.$post('/management/order/getStoreSalesReturnOrderPage', params);
}
//核销员列表
export async function apiGetPersonnelList(params) {
    return await React.$post('/management/verificationPersonnelInfo/list', params);
}
//派单
export async function apiGetSendOrders(params) {
    return await React.$post('/management/order/sendOrders', params);
}
//同意退款
export async function apiOrderRefundSubmitY(params) {
    return await React.$post('/management/order/refundSubmitY', params);
}
//拒绝退款
export async function apiOrderRefundRefuse(params) {
    return await React.$post('/management/order/refundRefuse', params);
}
//商城订单
export async function apiShopOrderInfoPage(params) {
    return await React.$post('/management/shopOrderInfo/getShopOrderPage', params);
}
//商城订单
export async function apiShopOrderInfoList(params) {
    return await React.$post('/management/shopOrderInfo/page', params);
}
//商城退单
export async function apiShopSalesReturnPage(params) {
    return await React.$post('/management/shopSalesReturn/page', params);
}
//商城订单-详情
export async function apiShopOrderDetail(params) {
    return await React.$post('/management/shopOrderInfo/getShopOrderDetail', params);
}
//商城退单-详情
export async function apiShopSalesReturnOrderDetail(params) {
    return await React.$post('/management/shopSalesReturn/view', params);
}
//快递公司
export async function apiExpressageList(params) {
    return await React.$post('/management/expressageCompanySetting/list', params);
}
//发货
export async function apiSendOrders(params) {
    return await React.$post('/management/shopOrderInfo/sendOrders', params);
}

// 线上订单-导出资金日报
export async function apiOnlineExportCapitalDaily(params) {
    return await React.$post('/management/order/onlineExportCapitalDaily', params);
}

// 线上订单-导出资金日报订单
export async function apiOnlineExportOrderDetail(params) {
    return await React.$post('/management/order/onlineExportOrderDetail', params);
}
//导出销售出库单
export async function apiExportLibraryOutReport(params) {
    return await React.$post('/management/shopOrderInfo/exportLibraryOutReport', params);
}
// 清空新订单统计量
export async function apiOrderNoticeDel(params) {
    return await React.$post('/management/orderNotice/del', params);
}
// 按类型获取当前新订单统计
export async function apiOrderNoticeStatistic(params) {
    return await React.$post('/management/orderNotice/statistic', params);
}
//商城订单列表——导出资金日报
export async function apiMallOrderExportCapitalDaily(params) {
    return await React.$post('/management/shopOrderInfo/exportCapitalDaily', params);
}
//商城订单列表——导出资金日报订单
export async function apiMallOrderExportOrderDetail(params) {
    return await React.$post('/management/shopOrderInfo/exportCapitalDailyOrder', params);
}
// 订单强制退款
export async function apiShopSalesReturnForceRefund(params) {
    return await React.$postJson('/management/shopSalesReturn/forceRefund/Json', params);
}

// 出库单打印
export async function apiPrintOutLibraryOrder(params) {
    return await React.$post('/management/shopOrderInfo/printOutLibraryOrder', params);
}
//合并发货打印出库单
export async function apiPostMergeOrderDetail(params) {
    return await React.$post('/management/shopOrderInfo/getMergeOrderDetail', params);
}
//配送员列表
export async function apiDeliverymanPage(params) {
    return await React.$post('/management/verificationPersonnelInfo/deliverymanPage', params);
}
//重新指派配送员
export async function apiReassignDeliveryman(params) {
    return await React.$post('/management/shopOrderInfo/reassignDeliveryman', params);
}
//重新指派快递
export async function apiEditCourierInformation(params) {
    return await React.$post('/management/shopOrderInfo/editCourierInformation', params);
}

export async function apiGetShopOrderInfoPage(params) {
  return await React.$post('/trade/api/shopOrderInfo/getShopOrderPage', params);
}
export async function apiGetShopOrderInfoList(params) {
  return await React.$post('/trade/api/shopOrderInfo/getShopOrderList', params);
}

export async function apieditColorLevelRemark(params) {
  return await React.$post('/management/shopOrderInfo/editColorLevelRemark', params)
}
// 查看订单出库信息列表
export async function apifindOrderOutLibraryList(params) {
    return await React.$post('/management/shopOrderInfo/findOrderOutLibraryList', params)
}
// 查看订单出库信息
export async function apifindOrderOutLibraryDetail(params) {
    return await React.$post('/management/shopOrderInfo/findOrderOutLibraryDetail', params)
}
// 查看物流信息
export async function apifindCheckLogistics(params) {
    return await React.$post('/management/shopOrderInfo/checkLogistics', params)
}
